package com.ruoyi.platform.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.platform.mapper.TPermanentBlacklistDeviceMapper;
import com.ruoyi.platform.domain.TPermanentBlacklistDevice;
import com.ruoyi.platform.service.ITPermanentBlacklistDeviceService;

/**
 * 设备号永久黑名单Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-19
 */
@Service
public class TPermanentBlacklistDeviceServiceImpl implements ITPermanentBlacklistDeviceService 
{
    @Autowired
    private TPermanentBlacklistDeviceMapper tPermanentBlacklistDeviceMapper;

    /**
     * 查询设备号永久黑名单
     * 
     * @param permanentBlacklistDeviceId 设备号永久黑名单主键
     * @return 设备号永久黑名单
     */
    @Override
    public TPermanentBlacklistDevice selectTPermanentBlacklistDeviceByPermanentBlacklistDeviceId(Long permanentBlacklistDeviceId)
    {
        return tPermanentBlacklistDeviceMapper.selectTPermanentBlacklistDeviceByPermanentBlacklistDeviceId(permanentBlacklistDeviceId);
    }

    /**
     * 查询设备号永久黑名单列表
     * 
     * @param tPermanentBlacklistDevice 设备号永久黑名单
     * @return 设备号永久黑名单
     */
    @Override
    public List<TPermanentBlacklistDevice> selectTPermanentBlacklistDeviceList(TPermanentBlacklistDevice tPermanentBlacklistDevice)
    {
        return tPermanentBlacklistDeviceMapper.selectTPermanentBlacklistDeviceList(tPermanentBlacklistDevice);
    }

    /**
     * 新增设备号永久黑名单
     * 
     * @param tPermanentBlacklistDevice 设备号永久黑名单
     * @return 结果
     */
    @Override
    public int insertTPermanentBlacklistDevice(TPermanentBlacklistDevice tPermanentBlacklistDevice)
    {
        return tPermanentBlacklistDeviceMapper.insertTPermanentBlacklistDevice(tPermanentBlacklistDevice);
    }

    /**
     * 修改设备号永久黑名单
     * 
     * @param tPermanentBlacklistDevice 设备号永久黑名单
     * @return 结果
     */
    @Override
    public int updateTPermanentBlacklistDevice(TPermanentBlacklistDevice tPermanentBlacklistDevice)
    {
        return tPermanentBlacklistDeviceMapper.updateTPermanentBlacklistDevice(tPermanentBlacklistDevice);
    }

    /**
     * 批量删除设备号永久黑名单
     * 
     * @param permanentBlacklistDeviceIds 需要删除的设备号永久黑名单主键
     * @return 结果
     */
    @Override
    public int deleteTPermanentBlacklistDeviceByPermanentBlacklistDeviceIds(Long[] permanentBlacklistDeviceIds)
    {
        return tPermanentBlacklistDeviceMapper.deleteTPermanentBlacklistDeviceByPermanentBlacklistDeviceIds(permanentBlacklistDeviceIds);
    }

    /**
     * 删除设备号永久黑名单信息
     * 
     * @param permanentBlacklistDeviceId 设备号永久黑名单主键
     * @return 结果
     */
    @Override
    public int deleteTPermanentBlacklistDeviceByPermanentBlacklistDeviceId(Long permanentBlacklistDeviceId)
    {
        return tPermanentBlacklistDeviceMapper.deleteTPermanentBlacklistDeviceByPermanentBlacklistDeviceId(permanentBlacklistDeviceId);
    }
}
